package de.koller.reason.gameGui.grid;

import de.koller.oceanFramework.glyph.GlyphRendererGL;
import de.koller.reason.RSea;
import de.koller.reason.gameGui.visual.BasicVisual;
import de.koller.reason.gameGui.visual.Layer;
import de.koller.reason.gameGui.visual.StaticGlyphVisual;
import de.koller.reason.gui.component.RComponent;
import de.koller.reason.gui.component.RPanel;

public class GameGrid extends RSea {

	private RComponent basicLayer;

	@Override
	protected void init() {
		super.init();
		
		basicLayer = new RComponent();
		basicLayer.setPos( 100, 100 );
		basicLayer.setLayerZ( Layer.GameGrid.layerZ );
		
		for( int x = 0; x < 10; x++ )
			for( int y = 0; y < 10; y++ ) {
				RPanel test = new RPanel( BasicVisual.Grid.part );
				basicLayer.addComponent( test );
				test.setPosX( x*24 );
				test.setPosY( y*24 );
				test.addTo( rroot.guiRoot, rroot.guiRoot.basicRenderObjs );
			}
	}
	
}
